package com.imooc.pan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 存储购买订单表
 * @TableName storage_order
 */
@Data
public class StorageOrder implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private String payNo;

    /**
     * 订单总价
     */
    private BigDecimal totalPrice;

    /**
     * 交易状态
     */
    private String status;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 订单类型
     */
    private String orderType;

    /**
     * 订单名称
     */
    private String orderName;

    /**
     * 订单描述
     */
    private String orderDesc;

    /**
     * 订单详情
     */
    private String orderDetail;

    /**
     * 商品id
     */
    private Long businessId;

    /**
     * 商品名称
     */
    private String businessName;
    
    /**
     * 套餐存储大小
     */
    private BigDecimal businessSize;
    
    /**
     * 套餐持续时间
     */
    private Integer businessDuration;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}